#include "Rp2ZBufferState.h"

using namespace Rp2;

RP2_IMPLEMENT_INITIALIZE(ZBufferState);
RP2_IMPLEMENT_TERMINATE(ZBufferState);
//---------------------------------------------------------------------------------------------------
ZBufferState::ZBufferState()
{
	Enabled = true;
	Writable = true;
	Compare = CF_LEQUAL;
}
//---------------------------------------------------------------------------------------------------
ZBufferState::~ZBufferState()
{
}
//---------------------------------------------------------------------------------------------------
void ZBufferState::Initialize()
{
	DefaultStates[ZBUFFER] = new ZBufferState;
}
//---------------------------------------------------------------------------------------------------
void ZBufferState::Terminate()
{
	DefaultStates[ZBUFFER] = 0;
}
//---------------------------------------------------------------------------------------------------